import Rest from '../rest'
import SocketObj from '@/utils/socket.js'
import DateDiff from '@/utils/DateDiff'
import changeDate from '@/utils/changeDate'
import { ld } from '../bridge/index'
console.log(process.env.NODE_ENV)

export default {
    install(Vue) {
        Vue.prototype.$http = new Rest()
        Vue.prototype.$socketObj = new SocketObj()
        Vue.prototype.$DateDiff = DateDiff
        Vue.prototype.$changeDate = changeDate
        Vue.prototype.$ld = ld
        Vue.prototype.$base = process.env.NODE_ENV == 'development' ? '/api/gateway' : '/gateway'
            // Vue.prototype.$base = '/gateway'
    }
}